package com.bw.day523.代码;

import com.alibaba.fastjson2.JSON;

/**
 * @author y3068
 * @Classname JsonUtil
 * @Description TODO
 * @Date 2025/5/23 15:59
 * @Version V1.0
 */

public class JsonUtil {

    public static boolean isJson(String json) {
        try {
            JSON.parse(json);
            return true;
        }catch (Exception e){
            return false;
        }
    }
}
